//
//  NRWCarAuthCell.m
//  NRWMall
//
//  Created by 张记 on 2018/5/22.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NRWCarAuthCell.h"

@interface NRWCarAuthCell ()
@property (weak, nonatomic) IBOutlet UIView *backView;
@property (weak, nonatomic) IBOutlet UIButton *oneB;
@property (weak, nonatomic) IBOutlet UIButton *twoB;
@property (weak, nonatomic) IBOutlet UIButton *threeB;
@property (weak, nonatomic) IBOutlet UIButton *fourB;
@property (weak, nonatomic) IBOutlet UILabel *contentL;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *centerY;

@end

@implementation NRWCarAuthCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backView.layer.masksToBounds = YES;
    self.backView.layer.cornerRadius = 5;
    self.backView.layer.borderColor = getColor(@"999999").CGColor;
    self.backView.layer.borderWidth = 0.5f;
    self.oneB.backgroundColor = getColor(@"F56E6D");
    self.twoB.backgroundColor = getColor(@"FFAA07");
    self.threeB.backgroundColor = getColor(@"43D7E0");
    self.fourB.backgroundColor = getColor(@"3186DC");


}
- (IBAction)oneBClick:(UIButton *)sender {
    self.contentL.text = carDetailOneContet;
    self.centerY.constant = sender.centerX - 20;
    
    self.block(1);
}
- (IBAction)twoBClick:(UIButton *)sender {
    self.contentL.text = carDetailTwoContet;
    self.centerY.constant = sender.centerX - 20;
    self.block(2);

}
- (IBAction)threeBClick:(UIButton *)sender {
    self.contentL.text = carDetailThreeContet;
    self.centerY.constant = sender.centerX - 20;
    self.block(3);

}
- (IBAction)fourBClick:(UIButton *)sender {
    self.contentL.text = carDetailFourContet;
    self.centerY.constant = sender.centerX - 50;
    self.block(4);

}



@end
